(function() {
    'use strict';

    angular
        .module('weiyouquApp')
        .controller('DictDetailController', DictDetailController);

    DictDetailController.$inject = ['$scope', '$rootScope', '$stateParams', 'entity', 'Dict'];

    function DictDetailController($scope, $rootScope, $stateParams, entity, Dict) {
        var vm = this;

        vm.dict = entity;

        var unsubscribe = $rootScope.$on('weiyouquApp:dictUpdate', function(event, result) {
            vm.dict = result;
        });
        $scope.$on('$destroy', unsubscribe);
    }
})();
